package Application.Controller;

import javafx.fxml.FXML;
import javafx.scene.control.Slider;
import javafx.scene.control.ColorPicker;
import javafx.scene.control.ComboBox;
import Application.Tool.*;
import javafx.scene.control.TextField;
import javafx.scene.control.RadioButton;

public class HuePenSettingsController {
    @FXML private Slider sizeSetting;
    @FXML private ComboBox<String> maskSetting;
    @FXML private TextField angleSetting;

    @FXML public void onSizeChanged() {
        int size = (int)sizeSetting.getValue();

        HuePen.getInstance().setSize(size);
    }

    @FXML public void onAngleChanged() {
        double angle = Double.parseDouble(angleSetting.getText());

        HuePen.getInstance().setAngle(angle);
    }

    @FXML public void onMaskChanged() {
        String maskName = maskSetting.getValue();

        HuePen.getInstance().setMask(maskName);
    }

    public ComboBox<String> getCombo() {
        return maskSetting;
    }
}
